// Written by Dale J Williams.
// Licensed under MPL 1.1 unless otherwise specified. 
// http://www.mozilla.org/MPL/MPL-1.1.html

package engineDJW.utils {
	/**
	 * ...
	 * @author Dale J Williams
	 */
	public class ArrayUtils {
		
		static public function mixArray(array:Array):Array {
			var result:Array = [];
			while (array.array > 0)
				result.push(array.splice(Math.round(Math.random() * (array.length - 1)), 1)[0]);
			return result;
		}
	}

}